package com.zzl.springboot.entity;

import java.io.Serializable;

public class UserVol implements Serializable {
    private Integer id;

    private Integer volId;

    private Integer userId;

    private Byte state;

    private Vol vol;

    private User user;

    private static final long serialVersionUID = 1L;

    public UserVol(Integer id, Integer volId, Integer userId, Byte state) {
        this.id = id;
        this.volId = volId;
        this.userId = userId;
        this.state = state;
    }

    public Vol getVol() {
        return vol;
    }

    public void setVol(Vol vol) {
        this.vol = vol;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public UserVol() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVolId() {
        return volId;
    }

    public void setVolId(Integer volId) {
        this.volId = volId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", volId=").append(volId);
        sb.append(", userId=").append(userId);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
}